package com.example.demo.repository;

import com.example.demo.entity.Product.Units;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface UnitCNRepository extends JpaRepository<Units, Integer> {
    @Query("select u from Units u where u.unitCode = :unitCode")
    Units getUnitName(String unitCode);


}
